#ifndef INET_ALARMACCEPTOR_H
#define INET_ALARMACCEPTOR_H

#include "AlarmHandler.h"
#include "Reactor.h"
#include "SocketAcceptor.h"
#include "InetAddress.h"
#include "Handle.h"
#include "EventTypes.h"

#include <list>

class AlarmAcceptor : public EventHandler
{
 public:
  AlarmAcceptor(InetAddress &addr, Reactor * reactor);
  void handleEvent (Handle h, EventType et);
  Handle getHandle() const;
  
 private:
  std::list<AlarmEntry> * entries_;
  SocketAcceptor acceptor_;
  Reactor * reactor_;
};

#endif


